#define  _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <vector>
using namespace std;
int main()
{
	vector<int> v = { 1,2,4,6,8,9,0 };
	for (auto it:v)
	{
		cout << it << ' ';
	}
	cout << endl;
	cout <<"size:" << v.size() << endl;
	cout <<"capacity:" << v.capacity() << endl;
	v.push_back(29);
	cout << "size:" << v.size() << endl;
	cout << "capacity:" << v.capacity() << endl;
	v.erase(v.begin() + 1, v.begin() + 2);
	for (auto it : v)
	{
		cout << it << ' ';
	}cout << endl;
	v.pop_back();
	for (auto it : v)
	{
		cout << it << ' ';
	}cout << endl;
	v.assign({ 2,34,6 });
	for (auto it : v)
	{
		cout << it << ' ';
	}cout << endl;
	v.insert(v.begin() + 1, 99);
	for (auto it : v)
	{
		cout << it << ' ';
	}cout << endl;
	auto it1=v.rbegin();
	while (it1 != v.rend())
	{
		cout << *it1 << " ";
		it1++;
	}
	return 0;
}